package com.ddwl.order.dao.mapper;

import com.ddwl.common.dao.mapper.TkMapper;
import com.ddwl.order.dao.model.ThirdPartRecord;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.data.repository.query.Param;

import java.time.Instant;

/**
 * (ThirdPartRecord)数据库交互Mapper
 *
 * @author wenbin
 * @since 2020-8-13
 */
public interface ThirdPartRecordMapper extends TkMapper<ThirdPartRecord> {


    /**
     * 删除日志
     * @param time
     * @retrun String
     * */
    @Delete({"DELETE FROM third_part_record WHERE gmt_created<=#{time}"})
    void deleteLog(@Param("time") Instant time);

}
